#include <CommandSelect.h>
Inheritance diagram for CommandSelect:

Public Member Functions | |
| CommandSelect (int isMultipleSelection, TraffEduObject *obj, OSGWindows *osgwind) | |
| bool | execute () |
| bool | unexecute () |
| void | changeState () |
| void | changeStateReverse () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| vector< TraffEduObject * > | selectedObjs_ |
| vector< TraffEduObject * > | tmpObjs_ |
| osg::StateSet * | stateset |
| int | isMultip |
|
||||||||||||||||
|
A constructor. Initializes isMultipleSelection and osgwind_ variables.
|
|
|
highlight the selected objects in the environment. |
|
|
un_highlight the selected objects in the environment. |
|
|
do the selection operation.
Implements Command. |
|
|
undo the selection operation.
Implements Command. |
|
|
a private variable. It shows if the user intended to make multiple selection or not. |
|
|
a private variable. It is initialized with the unique OSGWindows instance. |
|
|
a private vector of TraffEduObjects. It holds the selected objects. |
|
|
a private osg::StateSet pointer. It holds state of the selected/deselected objects. |
|
|
a private vector of TraffEduObjects. It holds the selected objects before the last selection operation. |
1.4.6-NO